/*
 * XML Type:  JoinNode
 * Namespace: http:///org/isistan/flabot/coremodel.ecore
 * Java type: org.isistan.flabot.coremodelEcore.JoinNode
 *
 * Automatically generated - do not modify.
 */
package org.isistan.flabot.coremodelEcore.impl;
/**
 * An XML JoinNode(@http:///org/isistan/flabot/coremodel.ecore).
 *
 * This is a complex type.
 */
public class JoinNodeImpl extends org.isistan.flabot.coremodelEcore.impl.ResponsibilityNodeImpl implements org.isistan.flabot.coremodelEcore.JoinNode
{
    private static final long serialVersionUID = 1L;
    
    public JoinNodeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName JOINTYPE$0 = 
        new javax.xml.namespace.QName("", "joinType");
    
    
    /**
     * Gets the "joinType" attribute
     */
    public int getJoinType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JOINTYPE$0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "joinType" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetJoinType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(JOINTYPE$0);
            return target;
        }
    }
    
    /**
     * True if has "joinType" attribute
     */
    public boolean isSetJoinType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(JOINTYPE$0) != null;
        }
    }
    
    /**
     * Sets the "joinType" attribute
     */
    public void setJoinType(int joinType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JOINTYPE$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JOINTYPE$0);
            }
            target.setIntValue(joinType);
        }
    }
    
    /**
     * Sets (as xml) the "joinType" attribute
     */
    public void xsetJoinType(org.apache.xmlbeans.XmlInt joinType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(JOINTYPE$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(JOINTYPE$0);
            }
            target.set(joinType);
        }
    }
    
    /**
     * Unsets the "joinType" attribute
     */
    public void unsetJoinType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(JOINTYPE$0);
        }
    }
}
